package com.tengju.user.infrastructure.persistence.mybatis.mapper.dealer.custom;

import com.tengju.user.domain.model.survey.SurveyContent;
import com.tengju.user.domain.model.survey.SurveyId;
import com.tengju.user.domain.model.user.UserIdCode;
import com.tengju.user.infrastructure.persistence.mybatis.dataobject.SurveyContentDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SurveyContentDOCustomMapper {

    void batchinsert(@Param("surveyContentDOList") List<SurveyContentDO> surveyContentDOList);

    void deleteByIdCodeAndSurveyId(@Param("idCode") long idCode, @Param("surveyId") long surveyId);

    Boolean isSubmitByIdCodeSurveyId(@Param("idCode") Long idCode, @Param("surveyId") Long surveyId);

    List<SurveyContentDO> queryByIdCodeSurveyId(@Param("idCode") Long idCode, @Param("surveyId") Long surveyId);

}